#!/usr/bin/python 

import sys
import time

sys.path.append("/home/pi/Adafruit-Raspberry-Pi-Python-Code/")
sys.path.append("/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_I2C")
sys.path.append("/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_MCP230xx")

from Adafruit_I2C import Adafruit_I2C
from Adafruit_MCP230xx import Adafruit_MCP230XX

mcp = Adafruit_MCP230XX(address = 0x20, num_gpios = 16)


OUTPUT = 0
PIN = 4

mcp.config(PIN, OUTPUT)
mcp.config(5, OUTPUT)

#mcp.outputAll(1)

#while(True):
mcp.output(PIN,1)

time.sleep(10) 

mcp.output(5,1)

time.sleep(10)

mcp.output(5,0)
mcp.output(PIN,0)

